<extend name="Public/base"/>

<block name="body">
    <div class="main-title">
        <h2>新增下一期</h2>
    </div>
    <form action="{:U()}" method="post" class="form-horizontal">
        <div class="form-item">
            <label class="item-label">期数<span class="check-tips">（唯一数字）</span></label>
            <div class="controls">
                <input type="text" class="text input-small" name="periods" value="">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">开始时间(必须大于当前时间)-结束时间<span class="check-tips"></span></label>
            <div class="controls">
                <input type="text" class="text input-middel" id="time-start" name="periods_start_time" value="" placeholder="开始时间">-
                <input type="text" class="text input-middel" id="time-end" name="periods_end_time" value="" placeholder="结束时间">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">状态<span class="check-tips"></span></label>
            <div class="controls">
                停止：<input type="radio" class="text input-small"  checked name="status" value="0">
                进行：<input type="radio" class="text input-small"  name="status" value="1">
            </div>
        </div>
        <div class="form-item">
            <button class="btn submit-btn ajax-post" id="submit" type="submit" target-form="form-horizontal">确 定</button>
            <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
        </div>
    </form>
</block>

<block name="script">
<link href="__STATIC__/datetimepicker/css/datetimepicker.css?v={:SITE_VERSION}" rel="stylesheet" type="text/css">
<php>if(C('COLOR_STYLE')=='blue_color') echo '<link href="__STATIC__/datetimepicker/css/datetimepicker_blue.css?v={:SITE_VERSION}" rel="stylesheet" type="text/css">';</php>
<link href="__STATIC__/datetimepicker/css/dropdown.css?v={:SITE_VERSION}" rel="stylesheet" type="text/css">
<script type="text/javascript" src="__STATIC__/datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
<script type="text/javascript" src="__STATIC__/datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js?v={:SITE_VERSION}" charset="UTF-8"></script>

    <script type="text/javascript">
        //导航高亮
        $('.side-sub-menu').find('a[href="{:U('User/index')}"]').closest('li').addClass('current');
        $('#time-start,#time-end').datetimepicker({
            format: 'yyyy-mm-dd h:i:s',
            language:"zh-CN",
            minView:2,
            autoclose:true
        });
    </script>
</block>
